using System;
using System.Data;
using Future.DataAccess;

namespace Future.Entities
{
    [Serializable]
    public class xDetailEntity : Contract.BaseEntity
    {
        public override string TABLE_NAME { get { return "xDetail"; } }
        public override string PK { get { return "DetailID_PK"; } }
        public override object PK_VALUE
        {
            get { return DetailID_PK; }
            set { DetailID_PK = int.Parse(value.ToString()); }
        }

        [DBColumnAttribue(true, false, true, false, true, DbType.Int32)]
        public int? DetailID_PK { get { return _DetailID_PK; } set { _DetailID_PK = value; SetState(); } }
        private int? _DetailID_PK;

        [DBColumnAttribue(true, true, false, true, true, DbType.Int32)]
        public int? HeadID_PK { get { return _HeadID_PK; } set { _HeadID_PK = value; SetState(); } }
        private int? _HeadID_PK;

        [DBColumnAttribue(true, true, false, true, true, DbType.AnsiString)]
        public string sDetailName { get { return _sDetailName; } set { _sDetailName = value; SetState(); } }
        private string _sDetailName;

        [DBColumnAttribue(true, true, false, true, true, DbType.Boolean)]
        public bool? iDetailEnable { get { return _iDetailEnable; } set { _iDetailEnable = value; SetState(); } }
        private bool? _iDetailEnable;

        [DBColumnAttribue(true, true, false, true, true, DbType.Double)]
        public double? iDetailMoney { get { return _iDetailMoney; } set { _iDetailMoney = value; SetState(); } }
        private double? _iDetailMoney;

        [DBColumnAttribue(true, true, false, true, true, DbType.DateTime)]
        public DateTime? dDetailDate { get { return _dDetailDate; } set { _dDetailDate = value; SetState(); } }
        private DateTime? _dDetailDate;
    }
}
